//
//  CJSCitiesCell.m
//  GoTraveling
//
//  Created by 陈金山 on 15/12/25.
//  Copyright © 2015年 开发华佗. All rights reserved.
//

#import "CJSCitiesCell.h"

@implementation CJSCitiesCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.backgroundColor = [UIColor colorWithRed:0.98 green:0.97 blue:0.93 alpha:1];
        [self createSubViews];
    }
    return self;
}

- (void)createSubViews {
    
    UIImageView *lineImage = [[UIImageView alloc] initWithFrame:CGRectMake(-5, 0, SCREEN_WIDTH, 44)];
    lineImage.image = [UIImage imageNamed:@"waypoint_cell_shadow"];
    [self addSubview:lineImage];
    
    UIView *contentViews = [[UIView alloc] initWithFrame:CGRectMake(53, 0,  SCREEN_WIDTH - 75, 44)];
    contentViews.backgroundColor = [UIColor whiteColor];
    [self.contentView addSubview:contentViews];
}


- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
